package com.cnzhy.controller;

import com.cnzhy.entity.CrmAdminUser;
import com.cnzhy.service.UserFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: zhaoyan5
 */
@RestController
public class CrmUserController {

    UserFeignService userFeignService;

    @Autowired
    public void setUserFeignService(UserFeignService userFeignService) {
        this.userFeignService = userFeignService;
    }

    @GetMapping("user/{userId}")
    public CrmAdminUser getCrmAdminUser(@PathVariable long userId) {
        return userFeignService.getCrmAdminUser(userId);
    }

}
